//
//  THPageControl.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol THPageControlProtocol <NSObject>

@property(nonatomic) NSInteger numberOfPages;
@property(nonatomic) NSInteger currentPage;
// 当前一页 的时候 是否隐藏
@property (nonatomic) BOOL hidesForSinglePage;

@end

@interface THPageControl : UIView

@property (nonatomic) NSInteger numberOfPages;
@property (nonatomic) NSInteger currentPage;
@property (nonatomic) BOOL hidesForSinglePage;

+ (THPageControl *)getInstance;

- (id)initWithSelectedImg:(UIImage *)selectedImg normalImg:(UIImage *)normalImg dotSize:(CGSize)dotSize dotSpace:(CGFloat)space;

@end

NS_ASSUME_NONNULL_END
